package com.example.demo.entity.VO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@Data
public class CarVO {
    @ApiModelProperty("购物车ID")
    private Integer carId;

    @NotNull
    @ApiModelProperty(value ="用户ID", required = true)
    private Integer userId;

    @NotNull
    @ApiModelProperty(value = "商品ID",required = true)
    private Long goodsId;

    @NotNull
    @Min(value = 1,message = "数量不能小于1")
    @ApiModelProperty(value = "数量",required = true)
    private Integer goodsNum;
}
